# automake
bin_PROGRAMS = hsblock_sb_mf hsblock_sb_lcvi hsblock_dsb_mf hsblock_dsb_lcvi \
  hsblock_predict_dsb hsblock_predict_sb \
  dyhm_sb_mf dyhm_dsb_mf dyhm_sb_lcvi dyhm_dsb_lcvi

dist_bin_SCRIPTS = hsblock_cluster.py hsblock_predict.py

################ without degree correction ################
## using mean-field gradient score
hsblock_sb_mf_SOURCES = fit_hsblock.hh  fit_hsblock.cc \
		distrib.cc sparse_data.cc sparse_io.cc \
		btree.hh btree_io.hh distrib.hh sparse_data.hh util.hh util.cc \
		sparse_io.hh cnetwork.hh cnetwork.cc random.hh random.cc
hsblock_sb_mf_CPPFLAGS = -NDDEGREE_CORRECT -NDLCVI

## using locally collapsed variational inference
hsblock_sb_lcvi_SOURCES = ${hsblock_sb_mf_SOURCES}
hsblock_sb_lcvi_CPPFLAGS = -NDDEGREE_CORRECT -DLCVI

################ with degree correction ################
## using mean-field gradient score
hsblock_dsb_mf_SOURCES = ${hsblock_sb_mf_SOURCES}
hsblock_dsb_mf_CPPFLAGS = -DDEGREE_CORRECT -NDLCVI

## using locally collapsed variational inference
hsblock_dsb_lcvi_SOURCES = ${hsblock_sb_mf_SOURCES}
hsblock_dsb_lcvi_CPPFLAGS = -DDEGREE_CORRECT -DLCVI

################################################################
## link prediction
hsblock_predict_dsb_SOURCES = predict_hsblock.hh predict_hsblock.cc btree.hh btree_io.hh distrib.hh distrib.cc sparse_data.hh sparse_data.cc sparse_io.hh sparse_io.cc cnetwork.hh cnetwork.cc
hsblock_predict_dsb_CPPFLAGS = -DDEGREE_CORRECT 

hsblock_predict_sb_SOURCES = predict_hsblock.hh predict_hsblock.cc btree.hh btree_io.hh distrib.hh distrib.cc sparse_data.hh sparse_data.cc cnetwork.hh sparse_io.hh sparse_io.cc cnetwork.cc
hsblock_predict_sb_CPPFLAGS = -NDDEGREE_CORRECT 

################################################################
## dynamic stochastic block models
## by time-constrained variational inference

dyhm_sb_mf_SOURCES = fit_hsblock_dyn.hh  fit_hsblock_dyn.cc \
		distrib.cc sparse_data.cc sparse_io.cc \
		btree.hh btree_io.hh distrib.hh sparse_data.hh util.hh util.cc \
		sparse_io.hh cnetwork.hh cnetwork.cc random.hh random.cc

dyhm_sb_mf_CPPFLAGS = -NDDEGREE_CORRECT -NDLCVI

dyhm_dsb_mf_SOURCES = ${dyhm_sb_mf_SOURCES}
dyhm_dsb_mf_CPPFLAGS = -DDEGREE_CORRECT -NDLCVI

dyhm_sb_lcvi_SOURCES = ${dyhm_sb_mf_SOURCES}
dyhm_sb_lcvi_CPPFLAGS = -NDDEGREE_CORRECT -DLCVI

dyhm_dsb_lcvi_SOURCES = ${dyhm_sb_mf_SOURCES}
dyhm_dsb_lcvi_CPPFLAGS = -DDEGREE_CORRECT -DLCVI

